<template>
	<div class="parent_page">
		<h3>父组件传值给子组件</h3>
		<mt-field label="我是父组件" placeholder="请输入" v-model="parentValue"></mt-field>
		<child :receiveValue="parentValue"></child>
	</div>
	

</template>

<script>
	import child from './children.vue';
	import {Field} from 'mint-ui'; 
	export default {
		components:{child,Field},
		data(){
			return{
				parentValue:'',
			}
		}
	}
// 在父组件里面里面 给子组件绑定事件, 值为要传的值
// 在子组件里面通过props:{},来接收

</script>

<style>
	

</style>